import yaml
from com.power.auto.test.config.EnvManager import *


def parse_yml(file_name):
    f = open(file_name, 'r', encoding='utf-8')
    cfg = f.read()
    yaml_dict = yaml.load(cfg)  # 用load方法转字典
    return yaml_dict


if __name__ == '__main__':
    dic = parse_yml('env.yml')
    print(dic)
